package com.one.square.file.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.one.square.core.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.OutputStream;

/**
 * @author cwm
 * @Description 文件上传接口
 * @date 2021/10/27 下午3:09
 * @Version 1.0
 */
public interface IFileService extends IService<FileInfo> {
    FileInfo upload(MultipartFile file ) throws Exception;

//    PageResult<FileInfo> findList(Map<String, Object> params);

    void delete(String id);

    void out(String id, OutputStream os);

    void setFileIsTrue(String id);
}
